

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.GeneralPath;


public class Figuras {
    
    private Color color;
    private GeneralPath fig;
    private int IndexEstiloLinea;
    private int anchoTrazo;
    private int IndexEstiloRelleno;
  
    
    private boolean cerrado;
   // private boolean relleno;

    Figuras(GeneralPath fig, Graphics2D g2d,int grosorTrazo,boolean fill,boolean closePath,int indexEstiloRelleno,int indexEstiloLinea) {
       
      
        this.color = g2d.getColor();
        this.fig = fig;
      //  this.relleno = fill;
        this.anchoTrazo = grosorTrazo;
        this.cerrado = closePath;
       
        this.IndexEstiloLinea=indexEstiloLinea;
        this.IndexEstiloRelleno=indexEstiloRelleno;
        
        
        
    }
    
       
    public GeneralPath getGeneralPath(){
        return fig;
    }
    
    public int getEstiloLinea(){
        return IndexEstiloLinea;
    }
    
    public int getGrosorTrazo(){
        return anchoTrazo;
    }
    
    public int getEstiloRelleno(){
        return IndexEstiloRelleno;
    }
    
    public boolean getEstadoPath(){
        return cerrado;
    }
    
    //public boolean getRelleno(){
      ///  return relleno;
    //}
    
    public Color getColor(){
        return color;
    }
    
    public void setGeneralPath(GeneralPath shape){
       
        this.fig=shape;
      
    }
    
    public void setTipoLinea(int tipolinea){
        this.IndexEstiloLinea=tipolinea;
    }
    
    public  void setAnchoLinea(int ancho){
        this.anchoTrazo= ancho;
    }
    
    public int setTipoRelleno(){
        return IndexEstiloRelleno;
    }
    
    public void setEstadoPath(boolean estadopath){
        this.cerrado=estadopath;
    }
    
   // public void setRelleno(boolean esrelleno){
     //   this.relleno=esrelleno;
   // }
    
    public void setColor( Color elcolor){
        this.color = elcolor;
    }
    
    
    
    
    
    
}
